<%@ page contentType="text/html;charset=UTF-8" %>

  <header class="main-header">
    <!-- Logo -->
    <a href="${ctx}/sendPage/sale/admin/index" class="logo" style="position:relative;">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>运营</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg">${titleName}</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
      
	       <!-- 品种加载区域start -->
	        <form id="cateMenu-form">
	        	<input type="hidden" name="pageName" value="trpCate-list"/>
	        	<input type="hidden" name="formName" value="searchForm"/>
	        	<input type="hidden" name="trpCate.w_sysName" value="${sysName}"/>
	        	<input type="hidden" name="trpCate.w_delStatus" value="F"/>
	        	<input type="hidden" name="trpCate.w_infoTableOne" value="no_use"/>
	        </form>
	        <ul class="nav navbar-nav" id="cateMenu-body" >
	        </ul>
	       <!-- 品种加载区域end -->
      
        <ul class="nav navbar-nav">
          
         <!--
          <li class="dropdown messages-menu">
            <a href="${ctx}/sendPage/plateform/admin/index" class="dropdown-toggle">
             <span><i class="fa fa-balance-scale"></i>平台管理</span>
            </a>
          </li>
          <li class="dropdown messages-menu">
            <a href="${ctx}/sendPage/default/admin/index" class="dropdown-toggle">
             <span><i class="fa fa-balance-scale"></i>非标业务</span>
            </a>
          </li>
          
          <li class="dropdown messages-menu label-danger">
            <a href="${ctx}/sendPage/sale/admin/index" class="dropdown-toggle">
             <span><i class="fa fa-legal"></i>标准业务</span>
            </a>
          </li>
          
          <li class="dropdown messages-menu">
            <a href="${ctx}/sendPage/bjte/admin/index" class="dropdown-toggle">
             <span><i class="fa fa-balance-scale"></i>  挂牌</span>
            </a>
          </li>
          <li class="dropdown messages-menu">
            <a href="${ctx}/sendPage/bjte/wbd/admin/j" class="dropdown-toggle">
             <span><i class="fa fa-bar-chart"></i> 竞价</span>
            </a>
          </li>
          <li id="my-flow-list" class="dropdown messages-menu">
            <a href="${page_admin}/index" class="dropdown-toggle">
             <span><i class="fa fa-home"></i>HOME</span>
            </a>
          </li>
      
        -->
        
        
          <!-- Messages: style can be found in dropdown.less-->
          <li id="my-flow-list" class="dropdown messages-menu">
            <a href="${page_admin}/index" class="dropdown-toggle">
              <i class="fa fa-home" style="height: 20px;"></i>
              <span class="label label-success"></span>
            </a>
          </li>
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<%--              <img src="${version}/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">--%>
				<c:if test="${empty loginUser.user.userRemark}">
			        <img src="${ctx}/images/user/person2.png" class="user-image"/>
			  	</c:if>
			  	<c:if test="${!empty loginUser.user.userRemark}">
			       <img src="${loginUser.user.userRemark}" class="user-image"/>
			  	</c:if>

              <span class="hidden-xs">${loginUser.userCname}</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
<%--                <img src="${version}/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">--%>
	 			<c:if test="${empty loginUser.user.userRemark}">
			        <img src="${ctx}/images/user/person2.png" class="img-circle"/>
			  	</c:if>
			  	<c:if test="${!empty loginUser.user.userRemark}">
			       <img src="${loginUser.user.userRemark}" class="img-circle"/>
			  	</c:if>
                <p>
                  ${loginUser.userCname} - ${loginUser.userEname }
                  <small>${loginUser.email }</small>
                </p>
              </li>
              <!-- Menu Body -->
              <!-- Menu Footer-->
              <li class="user-footer">
                <!--  
                <div class="pull-left">
                  <a href="${ct}/index.jsp" class="btn btn-default btn-flat">网站门户</a>
                </div>
                 -->
                <div class="pull-right">
                  <a href="${ctx}/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
        </ul>
      </div>
    </nav>
  </header>
  
  <script type="text/template" id="cateMenu-template">

	<? for ( var i = 0; i < rows.length; i++) {?>
		<?if((pageObj.currentPage>1) && i==0){?>
 			<li>
            	<a href="javascript:void(0);" onclick="catePageNo(<?=pageObj.currentPage-1?>);">
            	<span><i class="fa fa-chevron-left" ></i>&nbsp;</span>
            	</a>
        	 </li>
		<?}?>

  		 <li>
            <a href="javascript:void(0);" onclick="loadLeftCateMenu('<?=rows[i].cateNo?>');">
             <span><i class="fa fa-stop-circle-o"></i> <?=rows[i].cateName?></span>
            </a>
         </li>

		<?if((pageObj.currentPage<cateTools.totalPage) && (i==rows.length-1)){?>
 			<li>
            	<a href="javascript:void(0);" onclick="catePageNo(<?=pageObj.currentPage+1?>);">
            	<span><i class="fa fa-chevron-right" ></i>&nbsp;</span>
            	</a>
        	 </li>
		<?}?>
	
	<?}?>


</script>  
 <script>
function noticeNum(){
	$.ajax({url: '${ctx}/doFM.action?doCode=Mcount',type: 'POST',data:{noticeStatus:'1',typeName:'F',sortCode:'notice',sendCode:'${loginUser.userEname}'},
			cache: false,success: function(data){
				//console.log(data+"*******")
				$(".countNotice").html(data);
			}  
	});
}
$(function(){
	noticeNum();
	//setInterval("noticeNum()",3000);
});
  </script>
  
  
